HipMTLRenderer

Undocumented in source.
version(AppleOS)
class HipMTLRenderer : IHipRendererImpl {}

Members

Functions

begin
void begin()
Undocumented in source. Be warned that the author may not have intended to support it.
clear
void clear()
Undocumented in source. Be warned that the author may not have intended to support it.
clear
void clear(ubyte r, ubyte g, ubyte b, ubyte a)
Undocumented in source. Be warned that the author may not have intended to support it.
createFrameBuffer
IHipFrameBuffer createFrameBuffer(int width, int height)
Undocumented in source. Be warned that the author may not have intended to support it.
createIndexBuffer
IHipIndexBufferImpl createIndexBuffer(index_t count, HipBufferUsage usage)
Undocumented in source. Be warned that the author may not have intended to support it.
createShader
Shader createShader()
Undocumented in source. Be warned that the author may not have intended to support it.
createShaderVar
ShaderVar* createShaderVar(ShaderTypes shaderType, UniformType uniformType, string varName, size_t length)
Undocumented in source. Be warned that the author may not have intended to support it.
createTexture
IHipTexture createTexture()
Undocumented in source. Be warned that the author may not have intended to support it.
createVertexArray
IHipVertexArrayImpl createVertexArray()
Undocumented in source. Be warned that the author may not have intended to support it.
createVertexBuffer
IHipVertexBufferImpl createVertexBuffer(size_t size, HipBufferUsage usage)
Undocumented in source. Be warned that the author may not have intended to support it.
dispose
void dispose()
Undocumented in source. Be warned that the author may not have intended to support it.
drawIndexed
void drawIndexed(index_t count, uint offset)
Undocumented in source. Be warned that the author may not have intended to support it.
drawVertices
void drawVertices(index_t count, uint offset)
Undocumented in source. Be warned that the author may not have intended to support it.
end
void end()
Undocumented in source. Be warned that the author may not have intended to support it.
getEncoder
MTLRenderCommandEncoder getEncoder()
Undocumented in source. Be warned that the author may not have intended to support it.
hasErrorOccurred
bool hasErrorOccurred(string err, string file, size_t line)
Undocumented in source. Be warned that the author may not have intended to support it.
init
bool init(HipWindow window)
Undocumented in source. Be warned that the author may not have intended to support it.
initExternal
bool initExternal()
Undocumented in source. Be warned that the author may not have intended to support it.
isBlendingEnabled
bool isBlendingEnabled()
Undocumented in source. Be warned that the author may not have intended to support it.
isRowMajor
bool isRowMajor()
Undocumented in source. Be warned that the author may not have intended to support it.
queryMaxSupportedPixelShaderTextures
int queryMaxSupportedPixelShaderTextures()
Undocumented in source. Be warned that the author may not have intended to support it.
setColor
void setColor(ubyte r, ubyte g, ubyte b, ubyte a)
Undocumented in source. Be warned that the author may not have intended to support it.
setColorMask
void setColorMask(ubyte r, ubyte g, ubyte b, ubyte a)
Undocumented in source. Be warned that the author may not have intended to support it.
setDepthTestingEnabled
void setDepthTestingEnabled(bool enabled)
Undocumented in source. Be warned that the author may not have intended to support it.
setDepthTestingFunction
void setDepthTestingFunction(HipDepthTestingFunction d)
Undocumented in source. Be warned that the author may not have intended to support it.
setErrorCheckingEnabled
void setErrorCheckingEnabled(bool enable)
Undocumented in source. Be warned that the author may not have intended to support it.
setRendererMode
void setRendererMode(HipRendererMode mode)
Undocumented in source. Be warned that the author may not have intended to support it.
setStencilOperation
void setStencilOperation(HipStencilOperation stencilFail, HipStencilOperation depthFail, HipStencilOperation stencilAndDephPass)
Undocumented in source. Be warned that the author may not have intended to support it.
setStencilTestingEnabled
void setStencilTestingEnabled(bool bEnable)
Undocumented in source. Be warned that the author may not have intended to support it.
setStencilTestingFunction
void setStencilTestingFunction(HipStencilTestingFunction passFunc, uint reference, uint mask)
Undocumented in source. Be warned that the author may not have intended to support it.
setStencilTestingMask
void setStencilTestingMask(uint mask)
Undocumented in source. Be warned that the author may not have intended to support it.
setViewport
void setViewport(Viewport v)
Undocumented in source. Be warned that the author may not have intended to support it.
setWindowMode
bool setWindowMode(HipWindowMode mode)
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

createPrivateBufferWithData
MTLBuffer createPrivateBufferWithData(MTLCommandQueue cQueue, const(void)* data, size_t size)

Util for creating MTLResourceOptions.StorageModePrivate buffer with initial data.

Variables

argsTier
MTLArgumentBuffersTier argsTier;
Undocumented in source.
cmdBuffer
MTLCommandBuffer cmdBuffer;
Undocumented in source.
cmdEncoder
MTLRenderCommandEncoder cmdEncoder;
Undocumented in source.
cmdQueue
MTLCommandQueue cmdQueue;
Undocumented in source.
depthStencilDescriptor
MTLDepthStencilDescriptor depthStencilDescriptor;
Undocumented in source.
device
MTLDevice device;
Undocumented in source.
primitiveType
MTLPrimitiveType primitiveType;
Undocumented in source.
renderPassDescriptor
MTLRenderPassDescriptor renderPassDescriptor;
Undocumented in source.
view
MTKView view;
Undocumented in source.

Inherited Members

From IHipRendererImpl

init
bool init(HipWindow window)
Undocumented in source.
initExternal
bool initExternal()
Undocumented in source.
isRowMajor
bool isRowMajor()
Undocumented in source.
setErrorCheckingEnabled
void setErrorCheckingEnabled(bool enable)
Undocumented in source.
createShader
Shader createShader()
Undocumented in source.
createShaderVar
ShaderVar* createShaderVar(ShaderTypes shaderType, UniformType uniformType, string varName, size_t length)
Undocumented in source.
createFrameBuffer
IHipFrameBuffer createFrameBuffer(int width, int height)
Undocumented in source.
createVertexArray
IHipVertexArrayImpl createVertexArray()
Undocumented in source.
createVertexBuffer
IHipVertexBufferImpl createVertexBuffer(size_t size, HipBufferUsage usage)
Undocumented in source.
createIndexBuffer
IHipIndexBufferImpl createIndexBuffer(index_t count, HipBufferUsage usage)
Undocumented in source.
createTexture
IHipTexture createTexture()
Undocumented in source.
queryMaxSupportedPixelShaderTextures
int queryMaxSupportedPixelShaderTextures()
Undocumented in source.
setColor
void setColor(ubyte r, ubyte g, ubyte b, ubyte a)
Undocumented in source.
setViewport
void setViewport(Viewport v)
Undocumented in source.
setWindowMode
bool setWindowMode(HipWindowMode mode)
Undocumented in source.
setDepthTestingEnabled
void setDepthTestingEnabled(bool )
Undocumented in source.
setDepthTestingFunction
void setDepthTestingFunction(HipDepthTestingFunction )
Undocumented in source.
setStencilTestingEnabled
void setStencilTestingEnabled(bool )
Undocumented in source.
setStencilTestingMask
void setStencilTestingMask(uint mask)
Undocumented in source.
setColorMask
void setColorMask(ubyte r, ubyte g, ubyte b, ubyte a)
Undocumented in source.
setStencilTestingFunction
void setStencilTestingFunction(HipStencilTestingFunction passFunc, uint reference, uint mask)

When pass func evaluates to true, then it is said to be passed

setStencilOperation
void setStencilOperation(HipStencilOperation stencilFail, HipStencilOperation depthFail, HipStencilOperation stencilAndDephPass)
Undocumented in source.
hasErrorOccurred
bool hasErrorOccurred(string err, string line, size_t line)
Undocumented in source.
begin
void begin()
Undocumented in source.
setRendererMode
void setRendererMode(HipRendererMode mode)
Undocumented in source.
drawIndexed
void drawIndexed(index_t count, uint offset)
Undocumented in source.
drawVertices
void drawVertices(index_t count, uint offset)
Undocumented in source.
end
void end()
Undocumented in source.
clear
void clear()
Undocumented in source.
clear
void clear(ubyte r, ubyte g, ubyte b, ubyte a)
Undocumented in source.
dispose
void dispose()
Undocumented in source.

Meta